package DFdwer;

public class DFfsd {
	public static void main(String[] args) {
		String s="1234";
		System.out.println(aa(s, 0, 1));
	}
	public static int aa(String s,int x,int y){
		int t=0;
		if(y==s.length()){
			x++;
			if(x<s.length()-1){	
				y=x+1;
			}			
		}
		  if(x<s.length()-1){
			System.out.println((char)s.charAt(x)+" "+(char)s.charAt(y));
			t=aa(s,x,y+1)+1;
			return t;
		  }		
	   return 0;	
	}
}
